<wx:page
 class="x-page"
 id="page"
 navigationBarTitleText="鱼香瓜瓢"
 on:show="[{&quot;operation&quot;:&quot;restData3.refresh&quot;,&quot;args&quot;:{&quot;force&quot;:&quot;true&quot;}},{&quot;operation&quot;:&quot;wxapi.setNavigationBarTitle&quot;,&quot;args&quot;:{&quot;title&quot;:&quot;js:\&quot;瓜瓢寻宝\&quot;&quot;}}]"
 style="font-size:12px;color:#666666;background-color:#f2edf5"
 xmlns:bind="http://www.wex5.com/wx/bind"
 xmlns:catch="http://www.wex5.com/wx/event/catch"
 xmlns:contactbtnComp="$UI/comp/contactbtn/components"
 xmlns:on="http://www.wex5.com/wx/event/on"
 xmlns:wx="$UI/wxsys/comps"
 xmlns:wxlogin="$UI/comp/wxxcx_login/components">
<wx:model
 id="model">
<wx:wxApi
 id="wxapi"
 label="通用接口"/>
<wx:commonOperation
 id="commonOperation"
 label="操作扩展"/>
<wx:restData
 _created="true"
 auto="load"
 className="/main/huandengp"
 confirmRefresh="false"
 id="restData"
 label="幻灯片"
 url="/dbrest">
<filter
 _filter_label="类型id 等于 1"
 id="restDatafilter2"
 name="_system1_">eq('fleixing',1)</filter></wx:restData>
<wx:restData
 _created="true"
 auto="load"
 className="/main/dianpu"
 confirmRefresh="false"
 id="restData1"
 label="店铺"
 url="/dbrest"/>
<wx:restData
 _created="true"
 _orderBy_label="上架时间:降序"
 className="/main/shangpin1"
 confirmRefresh="false"
 id="restData3"
 label="商品"
 limit="100"
 orderBy="fshangjiasj:desc"
 url="/dbrest">
<filter
 _filter_label="库存 大于 0"
 id="restDatafilter1"
 name="_system1_">gt('fkucun',0)</filter></wx:restData>
<wx:serviceRequest
 class="hide"
 id="serviceRequest1"
 label="注册信息"
 on:success="[{&quot;operation&quot;:&quot;toptips.show&quot;,&quot;args&quot;:{&quot;message&quot;:&quot;js:\&quot;稍后我们将引导你补充信息~\&quot;&quot;,&quot;type&quot;:&quot;success&quot;,&quot;duration&quot;:&quot;3000&quot;},&quot;cond&quot;:&quot;js:wx.Util.iif($event.data==\&quot;新用户\&quot;,true,false)&quot;}]"
 service="/main/tianjiadqyhfjxx/zhucexx"
 xmlns:bind="http://www.wex5.com/wx/bind"
 xmlns:catch="http://www.wex5.com/wx/event/catch"
 xmlns:on="http://www.wex5.com/wx/event/on">
<wx:serviceData
 id="serviceData"
 label="注册信息结果数据"
 service="/main/tianjiadqyhfjxx/zhucexx"
 serviceRequest="serviceRequest1"/></wx:serviceRequest>
<wx:serviceRequest
 class="hide"
 id="serviceRequest2"
 label="加入购物车"
 on:success="{&quot;operation&quot;:&quot;wxapi.showToast&quot;,&quot;args&quot;:{&quot;title&quot;:&quot;js:$event.data&quot;}}"
 service="/main/tianjiadqyhfjxx/jiarugwj"/>
<wx:tableData
 auto="load"
 className="/main/yemiansj"
 confirmRefresh="false"
 id="tableData"
 label="页面数据"/>
<wx:restData
 _created="true"
 allowEmpty="true"
 auto="load"
 className="/main/yonghufjxx"
 id="restData5"
 label="用户附加信息"
 url="/dbrest">
<filter
 _filter_label="用户ID 等于 用户信息.id"
 id="restDatafilter"
 name="_system1_">eq('fyonghuid',restData4.current.id/*{&quot;dependencies&quot;:[&quot;user&quot;]}*/)</filter></wx:restData>
<wx:tableData
 auto="load"
 className="/main/shangpinlb"
 id="tableData1"
 label="商品类别"/>
<wx:tableData
 auto="load"
 className="/main/linshisj"
 id="tableData2"
 label="临时数据"/>
<wx:serviceRequest
 class="hide"
 id="serviceRequest"
 label="检查有没有人撩你"
 service="/main/fanhuizfc/jianzhaymyrln"/></wx:model>
<wx:inVisibleCompContainer
 id="inVisibleCompContainer">
<wx:user
 appPath="$UI/main"
 autoLoadUserInfo="false"
 autoLogin="false"
 id="user"
 on:login="[{&quot;operation&quot;:&quot;serviceRequest1.sendServiceRequest&quot;}]"
 useOpenid="false">
<wx:restData
 _created="true"
 className="uaa/user"
 columns="id,name,email,userName,phone,avatarUrl,description,data4,data5,data9,data15,data17,data2,data3,data6"
 id="restData4"
 label="用户信息"
 owner="user"
 xmlns:wx="$UI/wxsys/comps">
<column
 id="default14"
 label="昵称"
 name="nickName"
 type="String"/>
<column
 id="default15"
 label="群组"
 name="group"
 type="Array"/>
<column
 id="default16"
 label="是否登录"
 name="isLogined"
 type="Boolean"/>
<rule
 id="rule">
<readonly
 id="default17">
<expr
 id="default18">true</expr></readonly></rule></wx:restData></wx:user>
<wxlogin:wxxcx_login
 appPath="$UI/main"
 id="wxxcx_login"
 miniappLogin="true"
 mpLogin="false"/>
<wx:toptips
 id="toptips"/>
<wx:share
 id="share"
 title="&quot;来自瓜大的鱼香瓜瓢，欢迎体验&quot;"/>
<wx:timer
 id="timer"
 on:timer="{&quot;operation&quot;:&quot;serviceRequest.sendServiceRequest&quot;}"/></wx:inVisibleCompContainer>
<resource
 id="resource">
<require
 id="require"
 url="css!$UI/main/common.css"/></resource>
<wx:panel
 class="x-panel x-full"
 id="panel">
<wx:content
 class="x-panel-content"
 id="content"
 style="top:0px;bottom:0px">
<wx:searchBar
 bind:hidden="wx.Util.iif(tableData.current.fxinyongf!=1&amp;&amp;restData3.count()&gt;4,true,false)"
 class="weui-search-bar"
 data="restData3"
 filterProps="fmingcheng"
 id="searchBar"
 placeholder="查询条件"
 style="background-color:#f2edf5;position:fixed;top:0px;left:0px;z-index:4;width:100%">
<view
 class="weui-search-bar__box"
 id="view18"
 style="background-color:#ffffff;border-radius:5px">
<icon
 class="weui-icon-search_in-box"
 id="icon3"
 size="16"
 type="search"/>
<wx:input
 class="weui-search-bar__input"
 id="input"
 placeholder="亲，想要点什么呢"
 style="background-color:#ffffff;border-radius:5px;margin-top:4px"
 type="text"/>
<icon
 class="weui-icon-clear"
 id="icon4"
 size="16"
 type="clear"/></view>
<wx:text
 class="weui-search-bar-btn"
 id="text1"
 style="font-size:17px;color:#9c28b1">搜索</wx:text></wx:searchBar>
<wx:scrollView
 enable-back-to-top="true"
 id="scrollView"
 label="滚动列表"
 on:scrolling="{&quot;operation&quot;:&quot;commonOperation.setValue&quot;,&quot;args&quot;:{&quot;item&quot;:&quot;tableData.current.fxinyongf&quot;,&quot;data&quot;:&quot;tableData&quot;,&quot;col&quot;:&quot;fxinyongf&quot;,&quot;value&quot;:&quot;js:1&quot;,&quot;row&quot;:&quot;js:tableData.current&quot;}}"
 on:toupper="{&quot;operation&quot;:&quot;commonOperation.setValue&quot;,&quot;args&quot;:{&quot;item&quot;:&quot;tableData.current.fxinyongf&quot;,&quot;data&quot;:&quot;tableData&quot;,&quot;col&quot;:&quot;fxinyongf&quot;,&quot;value&quot;:&quot;js:0&quot;,&quot;row&quot;:&quot;js:tableData.current&quot;}}"
 scroll-y="true"
 style="height:100%;position:absolute;top:0px;left:0px;width:100%"
 upper-threshold="50">
<wx:loading
 class="weui-loader-item {{$state.reachBottom ?'weui-loader-hide':''}}"
 id="loading"
 xmlns:bind="http://www.wex5.com/wx/bind"
 xmlns:catch="http://www.wex5.com/wx/event/catch"
 xmlns:on="http://www.wex5.com/wx/event/on"
 xmlns:wx="$UI/wxsys/comps">
<view
 class="ball-beat"
 id="view21">
<view
 class="weui-loader-view"
 id="view22"/>
<view
 class="weui-loader-view"
 id="view23"/>
<view
 class="weui-loader-view"
 id="view24"/></view></wx:loading>
<wx:carousel
 autoplay="true"
 circular="true"
 class="wx-carousel"
 data="restData.value"
 id="carousel"
 imgColumn="ftupian"
 indicator-active-color="#9c28b1"
 indicator-color="#F3F3F3"
 indicator-dots="true"
 style="height:210px">
<wx:list
 _created="true"
 id="list"
 index="listindex"
 item="listitem"
 items="restData.value"
 label="动态列表"
 xmlns:wx="$UI/wxsys/comps">
<swiper-item
 id="swiper_item"
 on:tap="{&quot;operation&quot;:&quot;wxapi.navigateTo&quot;,&quot;args&quot;:{&quot;url&quot;:&quot;$UI/main/shangpin_xq.w&quot;,&quot;params&quot;:&quot;js:{\&quot;param0\&quot;:listitem.fzhixiangdxid}&quot;}}"
 style="height:210px"
 xmlns:wx="$UI/wxsys/comps">
<wx:attachmentImage
 bind:ref="listitem.ftupian"
 class="{{$state.count == 1?'.weui-uploader__img':''}}"
 compDisabled="true"
 count="1"
 id="attachmentImage"
 style="width:100%;height:100%;"
 xmlns:bind="http://www.wex5.com/wx/bind"
 xmlns:catch="http://www.wex5.com/wx/event/catch"
 xmlns:on="http://www.wex5.com/wx/event/on">
<view
 class="weui-cells"
 id="view"
 wx:if="{{$state.count  &gt; 1}}">
<view
 class="weui-cell"
 id="view1">
<view
 class="weui-cell__bd"
 id="view2">
<view
 class="weui-uploader"
 id="view3">
<view
 class="weui-uploader__hd"
 id="view4">
<view
 class="weui-uploader__title"
 id="view5">{{$state.name}}</view>
<view
 class="weui-uploader__info"
 id="view6">{{$state.attachments.length}} / {{$state.count}}</view></view>
<view
 class="weui-uploader__bd"
 id="view7">
<block
 id="default0"
 wx:for-item="_attachmentItem"
 wx:for="{{$state.attachments}}">
<view
 class="weui-uploader__file {{_attachmentItem.previewImageUrl == ''?'weui-uploader__file_status':''}}"
 data-store-file-name="{{_attachmentItem.storeFileName}}"
 id="view8"
 on:tap="$comp.previewOrDeleteImage"
 style="position:relative;margin:.4em .4em 0 0;">
<image
 class="{{$state.largeImage?'weui-uploader__large_img':'weui-uploader__img'}}"
 id="image"
 mode="widthFix"
 src="{{_attachmentItem.previewImageUrl}}"/>
<view
 class="weui-badge"
 id="view9"
 style="position: absolute;top: -.4em;right: -.4em;"
 wx:if="{{$state.mode == 'delete'}}">X</view>
<view
 class="weui-uploader__file-content"
 id="view10"
 wx:if="{{_attachmentItem.percent &lt; 100}}">{{_attachmentItem.percent}}%</view></view></block>
<view
 class="{{$state.largeImage?'weui-uploader__large_input-box':'weui-uploader__input-box'}}"
 id="view11"
 style="margin-top:.4em"
 wx:if="{{$state.mode == 'upload' &amp;&amp; ($state.attachments.length &lt; $state.count)}}">
<view
 class="weui-uploader__input"
 id="view12"
 on:tap="$comp.chooseImage"
 style="padding-top:.4em"/></view>
<view
 class="{{$state.largeImage?'weui-uploader__large_delete-box':'weui-uploader__delete-box'}}"
 id="view13"
 style="margin-top:.4em">
<view
 class="weui-uploader__input"
 id="view14"
 on:tap="$comp.changeMode"/></view></view></view></view></view></view>
<block
 id="default1"
 wx:if="{{$state.count == 1}}">
<image
 class="{{$state.attachments[0].previewImageUrl == ''?'weui-uploader__file_status':''}} "
 id="image1"
 mode="widthFix"
 on:tap="$comp.replaceImage"
 src="{{$state.attachments[0].previewImageUrl}}"
 style="width:100%;height:100%"/></block></wx:attachmentImage></swiper-item></wx:list></wx:carousel>
<view
 id="view15"
 style="position:relative;height:40px;background-color:#eadbf2;border-width:1px;border-color:#cccccc;padding-top:10px">
<wx:image
 bind:src="restData1.current.fshanghulogo"
 class="weui-img"
 id="image2"
 mode="scaleToFill"
 style="width:80px;height:80px;position:absolute;bottom:5px;left:15px;border:2px solid #afafaf"/>
<wx:text
 bind:text="restData1.current.fshanghumc"
 id="text"
 style="margin-left:105px;font-size:14px">店铺名称</wx:text>
<wx:button
 bind:hidden="wx.Util.iif(restData4.current.isLogined==true,false,true)"
 class="wx-btn wx-btn-only-label"
 id="button3"
 on:tap="[{&quot;operation&quot;:&quot;wxapi.navigateTo&quot;,&quot;args&quot;:{&quot;url&quot;:&quot;$UI/main/geren_xxbc.w&quot;},&quot;cond&quot;:&quot;js:wx.Util.iif(serviceData.current.result==\&quot;新用户\&quot;,true,false)&quot;},{&quot;operation&quot;:&quot;wxapi.navigateTo&quot;,&quot;args&quot;:{&quot;url&quot;:&quot;$UI/main/fabu_sp.w&quot;},&quot;cond&quot;:&quot;js:wx.Util.iif(serviceData.current.result==\&quot;老用户\&quot;,true,false)&quot;}]"
 size="mini"
 style="border-radius:5px;position:absolute;right:5px;bottom:5px;margin-bottom:6px;background-color:#abc05b;color:#FFFFFF;margin-right:10px;font-size:13px"
 type="warn">
<wx:icon
 id="icon7"
 size="15"
 type="wx-btn-icon"/>
<view
 class="wx-btn-label"
 id="view28">发 布 商 品</view></wx:button></view>
<view
 id="view16"
 style="background-color:#f2edf5">
<view
 class="  "
 id="view17"
 label="分类选择"
 style="position:relative;width:100%;transform:rotate(deg);display:block">
<wx:row
 class="x-row"
 id="row5">
<wx:col
 class="x-col x-col-fixed x-col-center"
 id="col12"
 style="margin-left:5px">
<wx:text
 id="text8">选择分类：</wx:text></wx:col>
<wx:col
 class="x-col"
 id="col14">
<wx:select
 bind:labelref="tableData2.current.fzifu"
 bind:options="tableData1.value"
 class="weui-select"
 id="select"
 label="下拉列表"
 on:valuechange="[{&quot;operation&quot;:&quot;restData3.setFilter&quot;,&quot;args&quot;:{&quot;filters&quot;:&quot;js:[{op:\&quot;eq\&quot;,name:\&quot;fleibie\&quot;,value:$event.value}]&quot;,&quot;filterLabels&quot;:&quot;类别id 等于 $event.value&quot;}},{&quot;operation&quot;:&quot;restData3.refresh&quot;,&quot;args&quot;:{&quot;force&quot;:&quot;true&quot;}}]"
 optionsLabel="fleibiem"
 optionsValue="fleibieid"
 placeholder="请选择..."/></wx:col></wx:row></view>
<wx:list
 _created="true"
 class="col-xs-6"
 id="list2"
 index="list2index"
 item="list2item"
 items="restData3.value"
 label="商品动态列表"
 mockDataLimit="0"
 style="display:inline-block">
<view
 class=" c-hcenter"
 id="view19"
 style="width:98%">
<wx:image
 bind:src="list2item.ftupian"
 class="weui-img"
 id="image3"
 mode="widthFix"
 on:tap="{&quot;operation&quot;:&quot;commonOperation.openPageDialog&quot;,&quot;args&quot;:{&quot;url&quot;:&quot;$UI/main/shangpin_xq.w&quot;,&quot;receData&quot;:&quot;restData3&quot;,&quot;params&quot;:&quot;js:{\&quot;param0\&quot;:list2item.fid}&quot;}}"
 style="width:100%"/>
<view
 class="  c-twocol"
 id="view20"
 on:tap="{&quot;operation&quot;:&quot;commonOperation.openPageDialog&quot;,&quot;args&quot;:{&quot;url&quot;:&quot;$UI/main/shangpin_xq.w&quot;,&quot;receData&quot;:&quot;restData3&quot;,&quot;params&quot;:&quot;js:{\&quot;param0\&quot;:list2item.fid}&quot;}}"
 style="height:36px;margin-top:5px;padding-left:5px">
<wx:text
 bind:text="list2item.fmingcheng"
 id="text2">商品名称</wx:text></view>
<wx:row
 class="x-row"
 id="row1"
 style="padding-bottom:3px">
<wx:col
 class="x-col"
 id="col3">
<wx:text
 id="text3"
 style="color:#fa6868">￥</wx:text>
<wx:text
 bind:text="list2item.fjiage"
 id="text4"
 style="color:#fa6868;font-size:16px">价格</wx:text>
<wx:text
 bind:text="&quot;原价：￥&quot; + list2item.fshichangj"
 id="text5"
 style="display:block;text-decoration:line-through;color:#ccc"/></wx:col>
<wx:col
 bind:hidden="wx.Util.iif(list2item.fmaijiaid==restData4.current.id,true,false)"
 class="x-col x-col-fixed"
 id="col5"
 on:tap="[{&quot;operation&quot;:&quot;serviceRequest2.sendServiceRequest&quot;,&quot;args&quot;:{&quot;params&quot;:&quot;js:{\&quot;spID\&quot;:list2item.fid,\&quot;num\&quot;:1}&quot;},&quot;cond&quot;:&quot;js:wx.Util.iif(restData4.current.isLogined==true&amp;&amp;list2item.fmaijiaid!=restData4.current.id,true,false)&quot;},{&quot;operation&quot;:&quot;user.login&quot;,&quot;cond&quot;:&quot;js:wx.Util.iif(restData4.current.isLogined==true,false,true)&quot;}]">
<wx:icon
 class="icon-android-star"
 id="icon"
 size="15"
 style="font-size:20px;color:#fa6868"/></wx:col></wx:row></view></wx:list></view>
<view
 bind:hidden="wx.Util.iif(restData3.count()==0,false,true)"
 id="view26"
 style="background-color:#e3e3e3">
<wx:row
 class="x-row"
 id="row"
 style="background-color:#f2edf5">
<wx:col
 class="x-col"
 id="col"/>
<wx:col
 class="x-col x-col-center x-col-fixed"
 id="col1"
 style="text-align: center"
 xmlns:bind="http://www.wex5.com/wx/bind"
 xmlns:catch="http://www.wex5.com/wx/event/catch"
 xmlns:on="http://www.wex5.com/wx/event/on">
<wx:icon
 class="linear linear-mustache"
 id="icon5"
 size="15"
 style="font-size:150px"/>
<wx:row
 class="x-row"
 id="row3">
<wx:col
 class="x-col"
 id="col9"
 style="text-align:center;display:block">
<wx:text
 id="text6">老兄，你太帅了，把我们的宝贝都吓跑了</wx:text></wx:col></wx:row></wx:col>
<wx:col
 class="x-col"
 id="col2"/></wx:row></view>
<wx:row
 class="x-row"
 id="row4"
 style="position:fixed;bottom:10px;width:100%">
<wx:col
 class="x-col"
 id="col8"/>
<wx:col
 class="x-col x-col-fixed"
 id="col10">
<wx:button
 bind:hidden="wx.Util.iif(restData4.current.isLogined==false,false,true)"
 class="wx-btn"
 id="button"
 on:tap="{&quot;operation&quot;:&quot;user.login&quot;}"
 size="default"
 style="height:36px;background-color:#9c28b1;border-radius:5px"
 type="primary">
<wx:icon
 id="icon1"
 size="15"
 type="wx-btn-icon"/>
<view
 class="wx-btn-label"
 id="view25">快速登录</view></wx:button></wx:col>
<wx:col
 class="x-col"
 id="col4"/></wx:row></wx:scrollView></wx:content></wx:panel></wx:page>___js___:import PageImpl from "$UI/wxsys/lib/base/pageImpl";
var app = getApp();
export default class IndexPage extends PageImpl {
	constructor(...args){
		super(...args);
	}
}